#import "UIStatusBarManager+CAPHandleTapAction.h"

@implementation UIStatusBarManager (CAPHandleTapAction)

- (void)handleTapAction:(id)callback {
    // 仅当 iOS 13 以上系统，才去监听状态栏的点击事件，iOS 13 之前的，则在 appdelegate 中的 touchesBegan 捕获
    if (@available(iOS 13.0, *)) {
        // NSLog(@"is IOS 13 or up");
       // NSLog(@"handleTapAction");
        
        FlutterMethodChannel* channel = [TestIosStatusBarPlugin getChannel];
        
        if (channel != nil) {
            [channel invokeMethod:@"noticeTopStatusBar" arguments:@{}
                                       result:^(id  _Nullable result) {
                                           //flutter回调信息
                                       }];
        }
    }
}

@end
